#ifndef DEMO_DOMNODEBUILDER_H
#define DEMO_DOMNODEBUILDER_H

#include <QtXml/QDomNode>

namespace Data {
class IGlobalMap;
class IEditableGlobalMap;
}

namespace Demo {

class DomNodeBuilder
{
public:
    static void buildDocument(const Data::IGlobalMap &map,
                              QDomDocument &document);
    static void readDocument(const QString &path, QDomDocument &);
    static void writeDocument(const QDomDocument &, const QString &path);
    static void buildMap(const QDomDocument &document,
                         Data::IEditableGlobalMap &map);
};

} // namespace Demo

#endif // DEMO_DOMNODEBUILDER_H
